import Vue from 'vue';
import Vant from 'vant';
import router from '@/router/index';
import App from '@/App';
import Http from '@/utils/request';
import store from '@/stores';
import i18n from '@/locales';

import 'vant/lib/index.less';
import '@/assets/style/app.scss';

Vue.prototype.$http = new Http();
Vue.prototype.$bus = new Vue();

Vue.use(Vant);

window.vm = new Vue({
  i18n,
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');

Vue.config.productionTip = false;
Vue.config.performance = process.env.NODE_ENV !== 'production';
